//
//  CenterViewController.m
//  SmileWeather
//
//  Created by lanou3g on 15/9/16.
//  Copyright (c) 2015年 陶天海. All rights reserved.
//

#import "CenterViewController.h"

@interface CenterViewController ()

@property (nonatomic, strong) UIImageView *image;
@end

@implementation CenterViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    
  
    BlurImageView *blurimageView = [[BlurImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [self.view addSubview: blurimageView];
    
    //blurimageView.image = [UIImage imageNamed:@"u=3564259635,295438683&fm=21&gp=0.jpg"];
    
    UIImage * image = [[UIImage imageNamed:@"btn_nav_collection"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIBarButtonItem * leftItem = [[UIBarButtonItem alloc] initWithImage:image style:UIBarButtonItemStylePlain target:self action:@selector(clickLeft:)];
    self.navigationItem.leftBarButtonItem = leftItem;
    
    
    
    self.viewDeckController.panningMode = NO;//设置成没有手势;
    
    
    // Do any additional setup after loading the view.
}
- (void)clickLeft:(UIBarButtonItem *)button {
    [self.viewDeckController toggleLeftViewAnimated:YES];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    
    
    
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
